import 'package:flutter/material.dart';
import 'package:google_fonts/google_fonts.dart';

class AppTheme {
  static final lightAccent = Color.fromARGB(255, 241, 76, 0);
  static final lightPrimary = Color.fromARGB(255, 255, 80, 0);
  static final lightPrimary3 = Color.fromARGB(255, 255, 139, 13);
  static final lightPrimary4 = Color.fromARGB(255, 255, 237, 223);
  static final lightbackground = Color.fromARGB(255, 250, 250, 250);

  static final darkPrimary = Color.fromARGB(255, 25, 25, 25);
  static final darkbackground = Color.fromARGB(255, 17, 17, 17);

  static AppBarTheme get appBarTheme => AppBarTheme();

  static ThemeData get theme {
    return ThemeData(
      appBarTheme: appBarTheme,
      textTheme: GoogleFonts.poppinsTextTheme(),
      // 强调色
      accentColor: lightAccent,
      // 原色
      primaryColor: lightPrimary,
      primaryColorLight: lightPrimary3,
      scaffoldBackgroundColor: lightbackground,
    );
  }

  static ThemeData get darkTheme {
    return ThemeData(
      appBarTheme: appBarTheme,
      textTheme: GoogleFonts.aBeeZeeTextTheme(ThemeData.dark().textTheme),
      accentColor: lightAccent,
      primaryColor: darkPrimary,
      primaryColorLight: lightPrimary3,
      scaffoldBackgroundColor: darkbackground,
      brightness: Brightness.dark,
    );
  }
}
